package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbUserMapper;
import com.dongdongshop.pojo.TbUser;
import com.dongdongshop.service.LoginUserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

@Service
@DubboService
public class LoginUserServiceImpl implements LoginUserService {

    @Resource
    private TbUserMapper tbUserMapper;

    @Override
    public TbUser selectByName(String username) {
        TbUser tbUser = tbUserMapper.selectByName(username);
        return tbUser;
    }

    @Override
    public void insertUser(TbUser tbUser) {
        tbUserMapper.insertSelective(tbUser);
    }
}
